<div id="order-pay-dialog" class="order-pay-dialog-c" style="width:380px;">
	<h3><span id="order-pay-dialog-close" class="close" onclick="return X.boxClose();">close</span>${$category?'Edit':'New'} {$zone[1]}</h3>
	<div style="overflow-x:hidden;padding:10px;">
	<p>Name, English name : require unique classification</p>
<form method="post" action="/manage/category/edit.php" class="validator">
	<input type="hidden" name="id" value="{$category['id']}" />
	<input type="hidden" name="zone" value="{$zone[0]}" />

	<table width="96%" class="coupons-table">
    	<!--{if $zone[0]=='relay'}-->
		<tr>
		<td nowrap><b>Relay</b></td>
		<td><input type="text" name="czone" value="{$category['czone']}" class="f-input" /></td></tr>
		<tr>
		  <td width="80" nowrap><b>Address</b></td><td><input type="text" name="name" value="{$category['name']}" require="true" datatype="require" class="f-input" /></td></tr>
		<tr>
		<td nowrap><b>lat:000,lng:000</b></td>
		<td><input type="text" name="ename" value="{$category['ename']}" require="true" datatype="english" class="f-input" style="text-transform:lowercase;" /></td></tr>
        <tr>
		<td nowrap><b>Contacts</b></td>
		<td><textarea type="text" name="note" value="" require="true" datatype="english" class="f-textarea">{$category['note']}</textarea></td></tr>
        <!--{else}-->
        <tr>
		  <td width="80" nowrap><b>Name</b></td><td><input type="text" name="name" value="{$category['name']}" require="true" datatype="require" class="f-input" /></td></tr>
		<tr>
		<td nowrap><b>English name</b></td>
		<td><input type="text" name="ename" value="{$category['ename']}" require="true" datatype="english" class="f-input" style="text-transform:lowercase;" /></td></tr>
		<tr>
		<td nowrap><b>Group：</b></td>
		<td><input type="text" name="czone" value="{$category['czone']}" class="f-input" /></td></tr>        
        <!--{/if}-->
        
    <tr><td nowrap><b>Letter</b></td><td><input type="text" name="letter" value="{$category['letter']}" maxLength="1" require="true" datatype="english" class="f-input" style="text-transform:uppercase;" /></td></tr>
    
        
		<tr>
		<td nowrap><b>Display(Y/N)：</b></td>
		<td><input type="text" name="display" value="{$category['display']}" class="f-input" style="text-transform:uppercase;"/></td></tr>
		<tr>
		<td nowrap><b>Sort (descending)：</b></td>
		<td><input type="text" name="sort_order" value="${intval($category['sort_order'])}" class="f-input" /></td></tr>
		<tr><td colspan="2" height="10">&nbsp;</td></tr>
		<tr><td></td><td><input type="submit" value="yes" class="formbutton" /></td></tr>
	</table>
</form>
	</div>
</div>
